package com.clock.domain.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Api(tags = "帖子点赞")
@ApiModel
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
public class PostLikeDTO {

    @ApiModelProperty(value = "帖子id", required = true)
    private Long postId;

    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    @ApiModelProperty(value = "帖子点赞状态", required = true)
    private Boolean isLiked;

    @ApiModelProperty(value = "点赞行为", required = true ,notes = "0:取消点赞; 1:点赞")
    private Integer action;
}